import axios from "@/utils/axios";

export default {
    addRange: data => axios.post('/rangees/addRange', data),//添加靶场
    updateStates: data => axios.put('/rangees/saveStates', data),//修改靶场状态
    updateRange: data => axios.put('/rangees/adminUpdate', data),//修改靶场
    deleteRange: (obj) => axios.put(`/rangees/updateStatus`, obj),//删除靶场
    getRange: data => axios.post('/rangees/selAllNo', data),//查询所有靶场
    selRange: (id) => axios.post('/rangees/selAll1', id),//查询自己靶场信息
    selOne: (id) => axios.get(`/rangees/selOne/${id}`),//查询某一个靶场
    selState: data => axios.post('/rangees/selRangeByState', data),//靶场状态查询靶场
    selType: data => axios.post('/rangees/selRangeByType', data),//靶场类型查询靶场
    
}